package com.bustle.commons.data.dao;

import java.util.List;

public class DaoProxy<KeyType, Type, DaoType extends Dao<KeyType, Type>> implements Dao<KeyType, Type>
{
  @Override
  public void create(Type anObject)
  {
    dao.create(anObject);
  }

  @Override
  public Type retrieve(KeyType aKey)
  {
    return dao.retrieve(aKey);
  }

  @Override
  public List<Type> retrieveAll()
  {
    return dao.retrieveAll();
  }

  @Override
  public void update(Type anObject)
  {
    dao.update(anObject);
  }

  @Override
  public void delete(KeyType aKey)
  {
    dao.delete(aKey);
  }

  protected DaoType dao;
}
